package com.alibaba.cloud.enums;


/**
 * @Description: 响应码定义
 * @author: zhb1316783262@163.com
 * @date: 2019年2月20日下午4:19:31
 */
public enum ResultCodeEnum {
    SUCCESS(200, "成功"),
    UNKNOWN_ERROR(-100, "未知错误"),
    PARAMETER_ERROR(400, "参数错误"),
    ACCESS_DENIED(401, "您没有该权限！"),
    SESSION_INVALID(402, "session失效"),
    ERROR(500, "系统错误"), 
    FEIGN_ERROR(600,"远程访问异常");
    private int code;
    private String desc;

    public String desc() {
        return desc;
    }

    public int code() {
        return code;
    }

    private ResultCodeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
